
<?php
define("xxx","20");

class student
{
    public $name;
    public $sex;
    public $age;
    public static $sum=1;
    function self()
    {
        echo $this->sex."生";
        echo '<br>';
        echo "我是".$this->name.",今年".$this->age."岁,";
        echo '<br>';
    }
    function __construct()
    {
        echo $this->name."加入PHP，当前有".student::$sum."个学生<br>";//echo '<br>';

    }
    function  __destruct()
    {
        echo "析构方法".__CLASS__;
    }


}